<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>线性渐变-从上到下（默认情况）</title>
</head>
<style type="text/css">
	div {
		width: 800px;
		height: 500px;
		background: -webkit-linear-gradient(red,blue);/*webkit内核*/
		background:    -moz-linear-gradient(red,blue);
		background:      -o-linear-gradient(red,blue);
		background:         linear-gradient(red,blue);
	}
</style>
<body>
	<div></div>
</body>
</html>